import { createStore } from 'vuex'
const L_S ='k01'
export default createStore({
  state: {
    layout:[]
  },
  mutations: {
    saveLayout:(state,target)=>{
        state.layout = target;
        // 存进本地存储
        // console.log('到这里',state.layout )
        const save = JSON.stringify(state.layout)
        localStorage.setItem(L_S,save);
        console.log('存储完成')

    },
    
  },
  actions: {
  },
  modules: {
  }
})